<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>周末户外摄影小组 - 兴趣详情</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4f46e5;
            --primary-light: #f0f4ff;
            --secondary: #64748b;
            --light: #f8fafc;
            --dark: #1e293b;
            --success: #10b981;
            --danger: #ef4444;
            --warning: #f59e0b;
            --border: #e2e8f0;
            --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            background-color: #f8fafc;
            color: var(--dark);
            line-height: 1.6;
        }
        
        .navbar {
            box-shadow: var(--shadow);
            background-color: white;
        }
        
        .container {
            padding: 2rem 0;
        }
        
        .section-header {
            margin-bottom: 2rem;
        }
        
        .section-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
        }
        
        .section-subtitle {
            color: var(--secondary);
            max-width: 800px;
        }
        
        /* 详情页样式 */
        .detail-container {
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: var(--shadow);
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .detail-header {
            position: relative;
            height: 300px;
        }
        
        .detail-banner {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .detail-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.7));
            padding: 2rem;
            color: white;
        }
        
        .detail-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .detail-meta {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            font-size: 0.9rem;
        }
        
        .detail-meta-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        /* 用户信息样式 */
        .user-profile {
            display: flex;
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--border);
            gap: 1.5rem;
        }
        
        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid white;
            margin-top: -50px;
            position: relative;
            z-index: 10;
            box-shadow: var(--shadow);
        }
        
        .profile-info {
            flex: 1;
        }
        
        .profile-name {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .profile-role {
            color: var(--secondary);
            margin-bottom: 1rem;
        }
        
        .profile-stats {
            display: flex;
            gap: 2rem;
            margin-bottom: 1rem;
        }
        
        .profile-stat {
            display: flex;
            flex-direction: column;
        }
        
        .stat-value {
            font-weight: 600;
            color: var(--primary);
        }
        
        .stat-label {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        .profile-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        
        .profile-tag {
            background-color: var(--primary-light);
            color: var(--primary);
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            font-size: 0.85rem;
        }
        
        .action-buttons {
            display: flex;
            gap: 1rem;
            align-items: center;
        }
        
        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-primary:hover {
            background-color: #4338ca;
            border-color: #4338ca;
        }
        
        .btn-outline-primary {
            color: var(--primary);
            border-color: var(--primary);
        }
        
        .btn-outline-primary:hover {
            background-color: var(--primary);
            color: white;
        }
        
        /* 内容区域样式 */
        .detail-content {
            padding: 2rem;
            display: grid;
            grid-template-columns: 3fr 1fr;
            gap: 2rem;
        }
        
        .main-content {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        
        .content-section {
            margin-bottom: 2rem;
        }
        
        .section-heading {
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .description-text {
            line-height: 1.8;
            color: var(--dark);
            margin-bottom: 1.5rem;
        }
        
        .info-list {
            list-style: none;
            padding: 0;
            margin-bottom: 1.5rem;
        }
        
        .info-list li {
            display: flex;
            margin-bottom: 1rem;
        }
        
        .info-list li:last-child {
            margin-bottom: 0;
        }
        
        .info-label {
            flex: 0 0 120px;
            font-weight: 500;
            color: var(--secondary);
        }
        
        .info-value {
            flex: 1;
        }
        
        /* 图片展示 */
        .image-gallery {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .gallery-image {
            height: 150px;
            border-radius: 0.5rem;
            overflow: hidden;
            cursor: pointer;
        }
        
        .gallery-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .gallery-image:hover img {
            transform: scale(1.05);
        }
        
        /* 成员列表 */
        .members-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .member-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 80px;
        }
        
        .member-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 0.5rem;
        }
        
        .member-name {
            font-size: 0.85rem;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            width: 100%;
        }
        
        /* 侧边栏样式 */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .sidebar-card {
            background-color: var(--light);
            border-radius: 0.75rem;
            padding: 1.25rem;
        }
        
        .sidebar-heading {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .upcoming-event {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--border);
        }
        
        .upcoming-event:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .event-date {
            flex: 0 0 60px;
            background-color: var(--primary-light);
            color: var(--primary);
            border-radius: 0.5rem;
            padding: 0.5rem;
            text-align: center;
        }
        
        .date-day {
            font-size: 1.2rem;
            font-weight: 700;
            line-height: 1;
        }
        
        .date-month {
            font-size: 0.8rem;
            text-transform: uppercase;
        }
        
        .event-info {
            flex: 1;
        }
        
        .event-title {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .event-time {
            font-size: 0.85rem;
            color: var(--secondary);
        }
        
        /* 留言区样式 */
        .comments-section {
            margin-top: 2rem;
        }
        
        .comment-form {
            background-color: var(--light);
            border-radius: 0.75rem;
            padding: 1.25rem;
            margin-bottom: 2rem;
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-control {
            border: 1px solid var(--border);
            border-radius: 0.5rem;
            padding: 0.75rem 1rem;
            font-size: 0.95rem;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
            outline: none;
        }
        
        .comment-actions {
            display: flex;
            justify-content: flex-end;
        }
        
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .comment-item {
            display: flex;
            gap: 1rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid var(--border);
        }
        
        .comment-item:last-child {
            border-bottom: none;
        }
        
        .comment-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .comment-content {
            flex: 1;
        }
        
        .comment-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }
        
        .comment-author {
            font-weight: 500;
        }
        
        .comment-time {
            font-size: 0.8rem;
            color: var(--secondary);
        }
        
        .comment-text {
            margin-bottom: 0.75rem;
        }
        
        .comment-footer {
            display: flex;
            gap: 1.5rem;
            font-size: 0.85rem;
        }
        
        .comment-action {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--secondary);
            cursor: pointer;
            transition: color 0.2s;
        }
        
        .comment-action:hover {
            color: var(--primary);
        }
        
        .comment-action.liked {
            color: var(--danger);
        }
        
        /* 回复样式 */
        .replies-list {
            margin-top: 1rem;
            margin-left: 2rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .reply-item {
            display: flex;
            gap: 0.75rem;
            padding-bottom: 1rem;
            border-bottom: 1px dashed var(--border);
        }
        
        .reply-item:last-child {
            border-bottom: none;
        }
        
        .reply-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            flex-shrink: 0;
        }
        
        .reply-content {
            flex: 1;
        }
        
        .reply-form {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .reply-form .form-control {
            flex: 1;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .detail-content {
                grid-template-columns: 1fr;
            }
            
            .detail-header {
                height: 250px;
            }
        }
        
        @media (max-width: 768px) {
            .detail-header {
                height: 200px;
            }
            
            .user-profile {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            
            .profile-avatar {
                margin-top: -50px;
            }
            
            .profile-stats {
                justify-content: center;
            }
            
            .profile-tags {
                justify-content: center;
            }
            
            .action-buttons {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .image-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .detail-title {
                font-size: 1.5rem;
            }
            
            .section-title {
                font-size: 1.75rem;
            }
        }
        
        @media (max-width: 576px) {
            .detail-header {
                height: 160px;
            }
            
            .detail-overlay {
                padding: 1rem;
            }
            
            .detail-meta {
                flex-wrap: wrap;
                gap: 0.75rem;
            }
            
            .image-gallery {
                grid-template-columns: 1fr;
            }
            
            .profile-stats {
                gap: 1rem;
            }
            
            .info-list li {
                flex-direction: column;
            }
            
            .info-label {
                margin-bottom: 0.25rem;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="#">
                <i class="fas fa-users text-primary me-2"></i>兴趣社交
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">兴趣测试</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#">交友推荐</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#">社区</a>
                    </li>
                </ul>
                <div class="d-flex align-items-center gap-3">
                    <button class="btn btn-outline-primary">登录</button>
                    <button class="btn btn-primary">注册</button>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主要内容区 -->
    <div class="container">
        <!-- 详情页容器 -->
        <div class="detail-container">
            <!-- 详情页头部横幅 -->
            <div class="detail-header">
                <img src="https://picsum.photos/1200/400?random=10" alt="户外摄影活动横幅" class="detail-banner">
                <div class="detail-overlay">
                    <h1 class="detail-title">周末户外摄影小组招募新成员</h1>
                    <div class="detail-meta">
                        <div class="detail-meta-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span>距离 5km</span>
                        </div>
                        <div class="detail-meta-item">
                            <i class="fas fa-calendar-alt"></i>
                            <span>创立于 2023年3月</span>
                        </div>
                        <div class="detail-meta-item">
                            <i class="fas fa-users"></i>
                            <span>32名成员</span>
                        </div>
                        <div class="detail-meta-item">
                            <i class="fas fa-heart"></i>
                            <span>128人感兴趣</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 用户信息区域 -->
            <div class="user-profile">
                <img src="https://picsum.photos/200/200?random=101" alt="李明的头像" class="profile-avatar">
                <div class="profile-info">
                    <h2 class="profile-name">李明</h2>
                    <div class="profile-role">户外摄影爱好者 | 小组创始人</div>
                    
                    <div class="profile-stats">
                        <div class="profile-stat">
                            <span class="stat-value">156</span>
                            <span class="stat-label">关注</span>
                        </div>
                        <div class="profile-stat">
                            <span class="stat-value">328</span>
                            <span class="stat-label">粉丝</span>
                        </div>
                        <div class="profile-stat">
                            <span class="stat-value">89</span>
                            <span class="stat-label">作品</span>
                        </div>
                        <div class="profile-stat">
                            <span class="stat-value">4.9</span>
                            <span class="stat-label">评分</span>
                        </div>
                    </div>
                    
                    <div class="profile-tags">
                        <span class="profile-tag">摄影</span>
                        <span class="profile-tag">户外</span>
                        <span class="profile-tag">自然</span>
                        <span class="profile-tag">旅行</span>
                        <span class="profile-tag">风光</span>
                    </div>
                </div>
                
                <div class="action-buttons">
                    <button class="btn btn-primary" id="followBtn">
                        <i class="fas fa-user-plus me-1"></i> 关注
                    </button>
                    <button class="btn btn-outline-primary" id="messageBtn">
                        <i class="fas fa-comment me-1"></i> 私信
                    </button>
                    <button class="btn btn-outline-primary" id="shareBtn">
                        <i class="fas fa-share-alt me-1"></i> 分享
                    </button>
                </div>
            </div>
            
            <!-- 详情内容区域 -->
            <div class="detail-content">
                <!-- 主要内容 -->
                <div class="main-content">
                    <!-- 关于介绍 -->
                    <div class="content-section">
                        <h3 class="section-heading">关于小组</h3>
                        <p class="description-text">
                            我们是一群热爱自然和摄影的朋友，每周末组织户外拍摄活动，欢迎摄影爱好者加入我们，一起交流技巧，捕捉美好瞬间。无论你是摄影新手还是有经验的爱好者，都能在这里找到志同道合的朋友。
                        </p>
                        <p class="description-text">
                            我们定期举办摄影技巧分享会，组织户外采风活动，并且有专业摄影师指导。加入我们，不仅能提升摄影技能，还能认识更多热爱生活的朋友。
                        </p>
                        
                        <ul class="info-list">
                            <li>
                                <span class="info-label">活动频率：</span>
                                <span class="info-value">每周一次，通常在周六或周日</span>
                            </li>
                            <li>
                                <span class="info-label">活动地点：</span>
                                <span class="info-value">城市周边自然风光优美的地点，每次活动前通知具体位置</span>
                            </li>
                            <li>
                                <span class="info-label">适合人群：</span>
                                <span class="info-value">所有对摄影感兴趣的人，无需专业设备，手机摄影也欢迎</span>
                            </li>
                            <li>
                                <span class="info-label">入组要求：</span>
                                <span class="info-value">热爱生活，喜欢摄影，愿意分享自己的作品和心得</span>
                            </li>
                        </ul>
                    </div>
                    
                    <!-- 活动照片 -->
                    <div class="content-section">
                        <h3 class="section-heading">活动照片</h3>
                        <div class="image-gallery">
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=21" alt="摄影活动照片1">
                            </div>
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=22" alt="摄影活动照片2">
                            </div>
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=23" alt="摄影活动照片3">
                            </div>
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=24" alt="摄影活动照片4">
                            </div>
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=25" alt="摄影活动照片5">
                            </div>
                            <div class="gallery-image">
                                <img src="https://picsum.photos/400/300?random=26" alt="摄影活动照片6">
                            </div>
                        </div>
                    </div>
                    
                    <!-- 小组成员 -->
                    <div class="content-section">
                        <h3 class="section-heading">小组成员</h3>
                        <div class="members-list">
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=101" alt="李明的头像" class="member-avatar">
                                <span class="member-name">李明 (创始人)</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=102" alt="王芳的头像" class="member-avatar">
                                <span class="member-name">王芳</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=103" alt="张伟的头像" class="member-avatar">
                                <span class="member-name">张伟</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=104" alt="刘婷的头像" class="member-avatar">
                                <span class="member-name">刘婷</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=105" alt="赵强的头像" class="member-avatar">
                                <span class="member-name">赵强</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=106" alt="陈雪的头像" class="member-avatar">
                                <span class="member-name">陈雪</span>
                            </div>
                            <div class="member-item">
                                <div class="member-avatar" style="display: flex; align-items: center; justify-content: center; background-color: var(--primary-light); color: var(--primary); font-weight: bold;">+26</div>
                                <span class="member-name">更多成员</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 留言区 -->
                    <div class="content-section comments-section">
                        <h3 class="section-heading">留言板</h3>
                        
                        <!-- 留言表单 -->
                        <div class="comment-form">
                            <div class="form-group">
                                <textarea class="form-control" rows="3" placeholder="分享你的想法..."></textarea>
                            </div>
                            <div class="comment-actions">
                                <button class="btn btn-primary">发表留言</button>
                            </div>
                        </div>
                        
                        <!-- 留言列表 -->
                        <div class="comments-list">
                            <!-- 留言1 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=201" alt="王芳的头像" class="comment-avatar">
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <span class="comment-author">王芳</span>
                                        <span class="comment-time">2天前</span>
                                    </div>
                                    <div class="comment-text">
                                        参加了上周的活动，非常开心！学到了很多摄影技巧，认识了很多朋友。期待下周的活动！
                                    </div>
                                    <div class="comment-footer">
                                        <div class="comment-action liked" id="likeComment1">
                                            <i class="fas fa-heart"></i>
                                            <span>18</span>
                                        </div>
                                        <div class="comment-action reply-btn" data-comment-id="1">
                                            <i class="fas fa-reply"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复列表 -->
                                    <div class="replies-list" id="replies1">
                                        <div class="reply-item">
                                            <img src="https://picsum.photos/100/100?random=101" alt="李明的头像" class="reply-avatar">
                                            <div class="reply-content">
                                                <div class="comment-header">
                                                    <span class="comment-author">李明</span>
                                                    <span class="comment-time">2天前</span>
                                                </div>
                                                <div class="comment-text">
                                                    很高兴你能来参加！你的作品拍得很棒，期待下周能看到更多精彩照片。
                                                </div>
                                                <div class="comment-footer">
                                                    <div class="comment-action" id="likeReply1">
                                                        <i class="far fa-heart"></i>
                                                        <span>5</span>
                                                    </div>
                                                    <div class="comment-action reply-btn" data-reply-id="1">
                                                        <i class="fas fa-reply"></i>
                                                        <span>回复</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <!-- 回复表单 -->
                                        <div class="reply-form" id="replyForm1" style="display: none;">
                                            <img src="https://picsum.photos/100/100?random=999" alt="你的头像" class="reply-avatar">
                                            <input type="text" class="form-control" placeholder="回复 @王芳...">
                                            <button class="btn btn-sm btn-primary">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 留言2 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=202" alt="张伟的头像" class="comment-avatar">
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <span class="comment-author">张伟</span>
                                        <span class="comment-time">5天前</span>
                                    </div>
                                    <div class="comment-text">
                                        我是摄影新手，只有一部普通的相机，请问可以参加吗？需要准备什么装备吗？
                                    </div>
                                    <div class="comment-footer">
                                        <div class="comment-action" id="likeComment2">
                                            <i class="far fa-heart"></i>
                                            <span>7</span>
                                        </div>
                                        <div class="comment-action reply-btn" data-comment-id="2">
                                            <i class="fas fa-reply"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复列表 -->
                                    <div class="replies-list" id="replies2">
                                        <div class="reply-item">
                                            <img src="https://picsum.photos/100/100?random=101" alt="李明的头像" class="reply-avatar">
                                            <div class="reply-content">
                                                <div class="comment-header">
                                                    <span class="comment-author">李明</span>
                                                    <span class="comment-time">5天前</span>
                                                </div>
                                                <div class="comment-text">
                                                    当然可以参加！我们欢迎各种水平的摄影爱好者，不需要专业装备，手机也可以拍出好照片。带上你的相机，还有一颗热爱摄影的心就够了！
                                                </div>
                                                <div class="comment-footer">
                                                    <div class="comment-action" id="likeReply2">
                                                        <i class="far fa-heart"></i>
                                                        <span>3</span>
                                                    </div>
                                                    <div class="comment-action reply-btn" data-reply-id="2">
                                                        <i class="fas fa-reply"></i>
                                                        <span>回复</span>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <!-- 回复表单 -->
                                        <div class="reply-form" id="replyForm2" style="display: none;">
                                            <img src="https://picsum.photos/100/100?random=999" alt="你的头像" class="reply-avatar">
                                            <input type="text" class="form-control" placeholder="回复 @张伟...">
                                            <button class="btn btn-sm btn-primary">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- 留言3 -->
                            <div class="comment-item">
                                <img src="https://picsum.photos/100/100?random=203" alt="刘婷的头像" class="comment-avatar">
                                <div class="comment-content">
                                    <div class="comment-header">
                                        <span class="comment-author">刘婷</span>
                                        <span class="comment-time">1周前</span>
                                    </div>
                                    <div class="comment-text">
                                        上周去的那个湖边真的太美了，日落时分的光线太适合拍照了。有人整理了那天的照片吗？想看看大家拍的作品。
                                    </div>
                                    <div class="comment-footer">
                                        <div class="comment-action" id="likeComment3">
                                            <i class="far fa-heart"></i>
                                            <span>12</span>
                                        </div>
                                        <div class="comment-action reply-btn" data-comment-id="3">
                                            <i class="fas fa-reply"></i>
                                            <span>回复</span>
                                        </div>
                                    </div>
                                    
                                    <!-- 回复列表 -->
                                    <div class="replies-list" id="replies3">
                                        <!-- 回复表单 -->
                                        <div class="reply-form" id="replyForm3" style="display: none;">
                                            <img src="https://picsum.photos/100/100?random=999" alt="你的头像" class="reply-avatar">
                                            <input type="text" class="form-control" placeholder="回复 @刘婷...">
                                            <button class="btn btn-sm btn-primary">回复</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 侧边栏 -->
                <div class="sidebar">
                    <!-- 即将举行的活动 -->
                    <div class="sidebar-card">
                        <h3 class="sidebar-heading">
                            即将举行的活动
                            <span class="badge bg-primary">2个</span>
                        </h3>
                        
                        <div class="upcoming-event">
                            <div class="event-date">
                                <div class="date-day">15</div>
                                <div class="date-month">六月</div>
                            </div>
                            <div class="event-info">
                                <div class="event-title">山区日出摄影</div>
                                <div class="event-time">
                                    <i class="far fa-clock me-1"></i> 周六 05:30-09:00
                                </div>
                                <div class="event-time">
                                    <i class="fas fa-map-marker-alt me-1"></i> 西山国家森林公园
                                </div>
                            </div>
                        </div>
                        
                        <div class="upcoming-event">
                            <div class="event-date">
                                <div class="date-day">22</div>
                                <div class="date-month">六月</div>
                            </div>
                            <div class="event-info">
                                <div class="event-title">城市建筑摄影漫步</div>
                                <div class="event-time">
                                    <i class="far fa-clock me-1"></i> 周六 14:00-17:30
                                </div>
                                <div class="event-time">
                                    <i class="fas fa-map-marker-alt me-1"></i> 老城区历史街区
                                </div>
                            </div>
                        </div>
                        
                        <button class="btn btn-outline-primary w-100">查看全部活动</button>
                    </div>
                    
                    <!-- 小组公告 -->
                    <div class="sidebar-card">
                        <h3 class="sidebar-heading">
                            小组公告
                        </h3>
                        
                        <div class="description-text" style="font-size: 0.95rem;">
                            下周六的山区日出摄影活动需要早起，请大家提前安排好时间。建议携带广角镜头和三脚架，注意保暖。
                        </div>
                        
                        <div class="event-time" style="font-size: 0.85rem;">
                            <i class="far fa-clock me-1"></i> 发布于 3天前
                        </div>
                    </div>
                    
                    <!-- 推荐小组 -->
                    <div class="sidebar-card">
                        <h3 class="sidebar-heading">
                            推荐小组
                            <a href="#" style="font-size: 0.85rem; font-weight: normal; color: var(--primary);">更多</a>
                        </h3>
                        
                        <div class="members-list">
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=301" alt="城市摄影小组" class="member-avatar">
                                <span class="member-name">城市摄影</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=302" alt="自然风光摄影" class="member-avatar">
                                <span class="member-name">自然风光</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=303" alt="人像摄影交流" class="member-avatar">
                                <span class="member-name">人像摄影</span>
                            </div>
                            <div class="member-item">
                                <img src="https://picsum.photos/100/100?random=304" alt="手机摄影技巧" class="member-avatar">
                                <span class="member-name">手机摄影</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 加入小组 -->
                    <div class="sidebar-card" style="background-color: var(--primary-light); border: 1px dashed var(--primary);">
                        <h3 class="sidebar-heading" style="color: var(--primary);">加入我们</h3>
                        <p style="font-size: 0.95rem; margin-bottom: 1rem;">
                            成为小组一员，参与更多精彩的摄影活动，结识志同道合的朋友。
                        </p>
                        <button class="btn btn-primary w-100" id="joinGroupBtn">
                            <i class="fas fa-user-plus me-1"></i> 申请加入小组
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 关注按钮功能
            const followBtn = document.getElementById('followBtn');
            let isFollowing = false;
            
            followBtn.addEventListener('click', function() {
                isFollowing = !isFollowing;
                
                if (isFollowing) {
                    followBtn.innerHTML = '<i class="fas fa-check me-1"></i> 已关注';
                    followBtn.classList.remove('btn-primary');
                    followBtn.classList.add('btn-success');
                } else {
                    followBtn.innerHTML = '<i class="fas fa-user-plus me-1"></i> 关注';
                    followBtn.classList.remove('btn-success');
                    followBtn.classList.add('btn-primary');
                }
            });
            
            // 加入小组按钮功能
            const joinGroupBtn = document.getElementById('joinGroupBtn');
            let isGroupMember = false;
            
            joinGroupBtn.addEventListener('click', function() {
                isGroupMember = !isGroupMember;
                
                if (isGroupMember) {
                    joinGroupBtn.innerHTML = '<i class="fas fa-check me-1"></i> 已加入小组';
                    joinGroupBtn.classList.remove('btn-primary');
                    joinGroupBtn.classList.add('btn-success');
                } else {
                    joinGroupBtn.innerHTML = '<i class="fas fa-user-plus me-1"></i> 申请加入小组';
                    joinGroupBtn.classList.remove('btn-success');
                    joinGroupBtn.classList.add('btn-primary');
                }
            });
            
            // 私信按钮功能
            const messageBtn = document.getElementById('messageBtn');
            messageBtn.addEventListener('click', function() {
                alert('打开与李明的私信窗口');
            });
            
            // 分享按钮功能
            const shareBtn = document.getElementById('shareBtn');
            shareBtn.addEventListener('click', function() {
                alert('分享功能：复制链接或分享到社交媒体');
            });
            
            // 回复按钮功能
            const replyBtns = document.querySelectorAll('.reply-btn');
            
            replyBtns.forEach(btn => {
                btn.addEventListener('click', function() {
                    const commentId = this.getAttribute('data-comment-id');
                    const replyId = this.getAttribute('data-reply-id');
                    let formId;
                    
                    // 隐藏所有回复表单
                    document.querySelectorAll('.reply-form').forEach(form => {
                        form.style.display = 'none';
                    });
                    
                    if (commentId) {
                        formId = `replyForm${commentId}`;
                    } else if (replyId) {
                        formId = `replyForm${replyId}`;
                    }
                    
                    // 显示当前回复表单
                    if (formId) {
                        const form = document.getElementById(formId);
                        if (form) {
                            form.style.display = 'flex';
                            form.querySelector('input').focus();
                        }
                    }
                });
            });
            
            // 点赞功能
            function setupLikeButton(buttonId) {
                const button = document.getElementById(buttonId);
                if (!button) return;
                
                button.addEventListener('click', function() {
                    const icon = this.querySelector('i');
                    const countElement = this.querySelector('span');
                    let count = parseInt(countElement.textContent);
                    
                    if (this.classList.contains('liked')) {
                        // 取消点赞
                        this.classList.remove('liked');
                        icon.classList.remove('fas');
                        icon.classList.add('far');
                        countElement.textContent = count - 1;
                    } else {
                        // 点赞
                        this.classList.add('liked');
                        icon.classList.remove('far');
                        icon.classList.add('fas');
                        countElement.textContent = count + 1;
                    }
                });
            }
            
            // 设置所有点赞按钮
            setupLikeButton('likeComment1');
            setupLikeButton('likeComment2');
            setupLikeButton('likeComment3');
            setupLikeButton('likeReply1');
            setupLikeButton('likeReply2');
            
            // 照片画廊点击放大功能
            const galleryImages = document.querySelectorAll('.gallery-image');
            galleryImages.forEach(img => {
                img.addEventListener('click', function() {
                    const imageSrc = this.querySelector('img').src;
                    alert(`查看大图: ${imageSrc}`);
                    // 实际应用中可以打开一个模态框展示大图
                });
            });
        });
    </script>
</body>
</html>
    
